// @ts-ignore
/* eslint-disable */
import { postRequest } from '@/utils/postRequest';
import request from '@/utils/request';

/** 获取部门列表  */
export async function getWatcherRecordList(params, data) {
  return request('/api/v1/watch/getWatchRecordList', {
    method: 'POST',
    params: params,
    data: data,
  });
}

/** 修改部门  */
export async function updateWatchRecord(params: any) {
  return postRequest('/api/v1/watch/updateWatchRecord', params);
}

/** 新建部门 */
export async function insertWatchRecord(params: any) {
  return postRequest('/api/v1/watch/insertWatchRecord', params);
}

/** 删除部门  */
export async function deleteWatchRecordById(params: any) {
  return request('/api/v1/watch/deleteWatchRecordById', {
    method: 'POST',
    params: params,
  });
}
//批量删除
export async function batchDelete(data: any) {
  return request('/api/v1/watch/batchDelete', {
    method: 'POST',
    data,
  });
}
